package com.bracketbird.client.gui.club.tournament;

import com.bracketbird.client.model.*;
import com.bracketbird.clientcore.appcontrol.*;
import com.bracketbird.clientcore.gui.*;

/**
 *
 */
public class CreateChallengerPageController extends PageController<CreateChallengerPage> {

    public static String HISTORY_NAME = "CreateChallengerPage";
    private static CreateChallengerPageController instance;

    private CreateChallengerPageController() {
        super(TournamentsPageController.getInstance(), HISTORY_NAME);
    }

    public static CreateChallengerPageController getInstance() {
        if (instance == null) {
            instance = new CreateChallengerPageController();
        }
        return instance;
    }


    public CreateChallengerPage newInstance() {
        return new CreateChallengerPage();

    }

    public void afterLoadFromHistory() {

    }

    public MenuComponent newMenuInstance() {
        return new MenuLinkComponent("Create challenger");
    }

    public void afterLoad() {

    }

    public boolean makeHistory() {
        return true;
    }


    public UserStateConstant getLegalState() {
        return UserStateConstant.GUEST;
    }



}